package com.yellow.orderservice.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: hy
 * @create: 2024-02-23
 */
@Configuration
public class FeignConfig {

    /**
     * 配置日志输出级别
     * @return
     */
    @Bean
    public Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }

    /**
     * 修改契约配置，支持Feign原生注解,用于老版本的springcloud的feign组件
     * @return
     */
    //@Bean
    //public Contract feignContract(){
    //    return new Contract.Default();
    //}


}
